<?php /* Smarty version Smarty-3.0.7, created on 2011-08-13 14:28:21
         compiled from "./view/spary.tpl" */ ?>
<?php /*%%SmartyHeaderCode:253364e466de5260595-48184876%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '9478827ff231cb996f2acd713889ef144ddac3ea' => 
    array (
      0 => './view/spary.tpl',
      1 => 1313236776,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '253364e466de5260595-48184876',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<?php if (!isset($_smarty_tpl->getVariable('bodyaction',null,true,false)->value)){?>
	
    <div class='nag'><span>Centrum zarządzania sparingami - wszystkie sparingi na stronie</span></div>
 <?php if (isset($_smarty_tpl->getVariable('rows',null,true,false)->value)){?>   
   <br /> <b style='margin: 15px;'>Wszystkie sparingi:</b><br />
    <table style='margin-left: 10px;'>
    	<tr>
        	<td width='150px'>Data:</td>
        	<td width='150px'>Gra:</td>
            <td width='100px'>Rodzaj gry:</td>
            <td width='200px'>Klan:</td>
            <td width='100px'></td>
        </tr>
       <?php  $_smarty_tpl->tpl_vars['row'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('rows')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['row']->key => $_smarty_tpl->tpl_vars['row']->value){
?>
       	<tr>
        	<td><?php echo $_smarty_tpl->tpl_vars['row']->value['spar_date'];?>
</td>
        	<td><?php echo $_smarty_tpl->tpl_vars['row']->value['spar_game_type'];?>
</td>
            <td><?php echo $_smarty_tpl->tpl_vars['row']->value['spar_game_status'];?>
</td>
            <td><a href='<?php echo $_smarty_tpl->getVariable('page')->value;?>
/clans/clan_info/<?php echo $_smarty_tpl->tpl_vars['row']->value['user_id'];?>
'><?php echo $_smarty_tpl->tpl_vars['row']->value['user_team_name'];?>
</a></td>
            <td><a href='<?php echo $_smarty_tpl->getVariable('page')->value;?>
/spary/spar_info/<?php echo $_smarty_tpl->tpl_vars['row']->value['spar_id'];?>
'>Więcej</a></td>
        </tr>
       <?php }} ?>
    </table> 
  <?php }?>  
	<?php if (isset($_smarty_tpl->getVariable('message',null,true,false)->value)){?>
        <?php echo $_smarty_tpl->getVariable('message')->value;?>

	<?php }?>
    
<?php }else{ ?> 	
	<?php $_template = new Smarty_Internal_Template($_smarty_tpl->getVariable('bodyaction')->value, $_smarty_tpl->smarty, $_smarty_tpl, $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null);
 echo $_template->getRenderedTemplate();?><?php unset($_template);?>
<?php }?>